Habitat assessment by parasitoids: consequences for population distribution