Bank Bailouts, Bail-Ins, or No Regulatory Intervention? A Dynamic Model and Empirical Tests of Optimal Regulation