Information-theoretic signatures of causality in Bayesian networks and hypergraphs