The disruption to shipments has driven up global grain prices and renewed concerns about food security linked to the war in Ukraine.