Gold prices ended the U.S. day session slightly higher Tuesday, lifted in part by a sell-off in the U.S. stock market.