Gold futures settle at a 5-week high