Study reveals cause of athletes' collapse