Cooperation and Learning Dynamics under Wealth Inequality and Diversity in Individual Risk