gold settles lower on the day but gains on week