Risk and the Financial Structure of the Firm