Why Are Firms Rigid? A General Framework and Empirical Tests