Portugal's ruling centre-right coalition wins a general election seen as a referendum on its austerity policies.