Up to half of all food is thrown away, according to research. Much of it is perfectly edible