New Zealand's borders will be closed to everyone but citizens and residents, Prime Minister Jacinda Ardern has announced.