At what level is most food wasted?

Is most food wasted at the consumer level, i.e. throwing out leftovers, rotten food, not cleaning our plates, etc., or is more destroyed as part of agricultural subsidies?

Thanks,
Rob