gold prices settle higher to cut their loss for the week