On the evolution of cooperation, trust and diversity