Capital market frictions and the role of internal capital markets in banking