Portugal's president dissolves parliament and calls an early election after prime minister quit