Leadership and collective cognition