Social Formation of Pro-Social Preferences