Foreign governments have begun reallocating at least part of their holdings to gold an old market stalwart that once underpinned the global monetary system, but fell out of favor when governments embraced deficit spending and paper money untethered from bullion.