Emergence of collective oscillations in human crowds