gold futures close higher, recover from a two-week low