Integration of individual and social information for decision-making in groups of different sizes