Starmer is the sixth prime minister in a decade to stand outside 10 Downing Street and announce a premature departure, two years after a landslide election victory.