James Neesham completed a five-wicket haul as New Zealand bowlers dominated against Afghanistan at the ICC World Cup.