Cost of living dominated the election campaign and was a key issue for voters as they went to the ballot box.