Portugal's prime minister resigns over a corruption investigation