Capital regulation and bank balance sheet adjustments: a simultaneous approach