Almarai, one of the largest food and drink companies in the Middle East, has sold its share in a venture producing grains.