Associated British Foods has said sugar trading has been difficult but the company has thrived in grocery and ingredients performance.