gold futures close with a gain of nearly 3%