Branching principles of animal and plant networks identified by combining extensive data, machine learning and modelling