EU leaders vow to stop refugee flows