Misallocation in a model with endogenous managerial Capital and Distortions