Gold futures settle at highest level in nearly 3 weeks