Final ceremony follows days of memorial events that left five people dead and hundreds injured during stampedes.