The evolution of prosocial religions