Students who took exams on days with pollen in the air scored slightly lower, according to a study linking allergies to test performance.