Systemic risk governance in a dynamical model of a banking system with stochastic assets and liabilities