Cognitive function, mental health and even crime are all linked to high temperatures