Gold futures end lower on Friday to post their first weekly loss in five weeks as Treasury yields bounced and the U.S. dollar edged higher.