gold ends higher as traders mull investment appeal