More than 1,000 operations at NHS hospitals were cancelled due to heat during the UK’s record May and June heatwaves, Carbon Brief can reveal.