gold ends at record high, taps $1,300