Reproductive success is predicted by social dynamics and kinship in managed animal populations