Optimal Regulation Of Systemic Risk By Tax