gold closes lower for the session to post weekly loss of 1.7%