Gold set for first weekly loss in three as investors seek riskier assets