Buying too much food and failing to use trimmings and byproducts account for nearly half of U.S. food waste.