Italy's prime minister, Paolo Gentiloni, said his government would be ready to take action to support its banks.