Gold posts biggest weekly decline since mid-July