In years with hotter weather pupils are likely to perform less well in exams, says a major study from researchers at Harvard and other US universities.