Stock markets gain as US banks pump money into First Republic, easing fears of an industry crisis.