Gold futures gain nearly 3% for the month