gold ends at six-week high on disappointing data, dollar