Gold advanced to a record high of more than $3,100 an ounce on Monday, capping off a blockbuster quarter of gains.