gold ends higher on housing data bounce