Governments need to open cool buildings in heatwaves, as part of a wider set of additional responses, research shows.