Gold futures set a fresh record on safe-haven demand, a weaker U.S. dollar and lower Treasury yields.