French food giant Danone has sold its 40% stake in German biscuit and cake manufacturer Griesson de Beukelaer.