French dairy giant Danone has sold its 10% stake in Australian dairy firm National Foods.