Shops selling groceries, fuel and other essential supplies will be forced to accept cash under a plan to help those who haven't made the digital switch.