Portugal to get March snap election after PM resigns