An application of stochastic control theory to a bank portfolio choice problem