Banks as coordinators of economic growth and stability: Microfoundation for macroeconomy with externality