Text this: Collective learning and optimal consensus decisions in social animal groups.