President Erdogan says EU inaction over Syria means he cannot stop migrants heading for Greece.