Italian prime minister announces resignation