Rishi Sunak has apologised after leading the Conservatives to their worst ever election result as a Labour landslide swept Sir Keir Starmer to No 10.