Social Preferences and the Dynamics of Collective Action