Gold wavered after the biggest weekly decline in more than 40 years, as traders digested escalating threats by the US and Iran in a war that has entered a fourth week.