Gold prices turn higher as the U.S. dollar weakens