How did the revival of trade lead to the domestic system a banking system and the investing of capital?