Sir Keir Starmer said he would ‘set out the path ahead’ for his government after Labour’s electoral hammering.