Gold has trimmed losses after falling as much as 4% to its lowest in more than five years as sellers in top consumer China sold off the metal in minutes.