Policymakers are racing to catch up with the rapid rise of stablecoins — a version of cryptocurrency that rarely fluctuates, is backed by cash or government bonds and run on public blockchains.