Лейбористская партия Labour in ‘last chance saloon’ as party’s shortest-serving prime minister announces resignation