Sir Keir Starmer has suggested he accepted £20,000 in donations for accommodation because his son needed somewhere to revise for his GCSEs while his family home was besieged by journalists during the election campaign.