Growing confidence among Republicans in a victory for Donald Trump helped push a survey of consumer sentiment to a six-month high less than two weeks before the U.S. presidential election.