gold ends marginally lower