Strong stock market gives securities firms profit a boost in Q3