Gold prices retreat from a 3-week high