Associated British Foods has reached an agreement to take full ownership of South African sugar business Illovo Sugar.