Preferences for redistribution and social structure