Photoionising feedback and the star formation rates in galaxies