Japan's biggest brokerage has been benefiting from volatile global markets and a boom in investing and dealmaking at home.