Brokerages face threats from AI and shrinking profits