An adjustment cost model of social mobility