San Francisco is about to require brick-and-mortar retailers to take cash as payment, joining Philadelphia and New Jersey in banning a growing paperless practice that critics say discriminates against low-income people who may not have access to credit cards.