The bruised apple, the almost-expired milk, the day-old French baguette—perfectly edible food often finds its way into the dumpster. Americans throw away more than 25 percent of the food they prepare.