Scotland, Wales and Northern Ireland recorded their hottest day of the year so far, as the third heatwave of the summer hit its peak on Saturday.