Gold retains upside as central bank demand supports $4,000 floor