Harold Wilson announces shock resignation as prime minister