Customers will be able to get money back on bottles and cans under new government rules to reduce waste at supermarkets and convenience stores.