Turkish president's comments come as anger over migrants grows among locals, sparking fears in his office that issue might dominate next year's elections