Social preferences and skill segregation