Rising profits from its ingredients business has helped offset a tough year for Greencore's convenience foods business, the company has said.