Data shows this year's summer was the hottest ever, according to European Union data.