gold futures settle at an almost three-week high