Revealing the structure of information flows discriminates similar animal social behaviours