Moral hazard and systemic risk