The UK needs to "look again" at how to tackle mass migration, but those genuinely fleeing persecution should still be given asylum, the PM says.