Exploring the causes and consequences of cooperative behaviour in wild animal populations using a social network approach