The majority of people care about the cost-of-living crisis when casting their ballot, the Prime Minister said.