Collective foraging decision in a gregarious insect