Financial Intermediation and Capital Investment with Costly Monitoring