Turkey's President Erdogan says he is hopeful agreement to facilitate Ukrainian grain exports can be revived.