Gold prices trim losses after mixed U.S. data