Italy's prime minister resigns