Organisation of foraging in ants