Gold suffers largest weekly loss in more than 3 years