Gold settles lower, but posts a more than 1% weekly gain