While Europe’s heatwave makes us run for shade, the intriguing In Defense of Sunlight reveals sunlight’s health-giving effects – in moderation, says David Robson