Rising sugar prices in Europe helped boost revenues and offset flat grocery sales for Associated British Foods in its third quarter.