Associated British Foods has sold a UK ingredients business to Danish group Danisco.