For centuries, gold has been a go-to asset among investors worried about all sorts of financial risks. In the past decade, exchange-traded funds backed by the metal drew more money than any other commodity. Even the world’s biggest central banks hoard bullion as a reserve asset.