The UK and Greece have committed to deepen cooperation on irregular migration in the Eastern Mediterranean.