gold ends lower after touching intraday record