A combination of high inflation and a low level of savings are prompting many people to lose confidence in their ability to retire well, research finds.