The Federal Reserve is trying to figure out how to keep cash relevant in a cashless world. It’s considering digitizing the U.S. dollar, giving people money they can access on their phone and bypassing electronic payments that can be slow and costly for businesses.