UK prime minister announces resignation