Rhythm interaction in animal groups: selective attention in communication networks