Imperfect Competition and Moral Hazard in Financial Markets