Gold prices settle at a three-week high