gold settles at a three-week high