gold futures post largest weekly loss in over 3 years