The Heterogeneous Cost of Wage Rigidity: Evidence and Theory