French MPs have drawn up a draft bill to make it compulsory for supermarkets to give leftover food to charity.