A survey of consumer confidence jumped to a 17-month high in June, reflecting a slowdown in inflation and more confidence about the future of the economy.