Portuguese prime minister resigns after being named in corruption case