TreeHouse Foods has recorded a full-year loss after booking an impairment charge related to North American retail grocery unit Flagstone Foods.