Societal background influences social learning in cooperative decision making