Twitter’s revenue for the quarter fell short of expectations. The social network cited uncertainty about Elon Musk’s acquisition and advertisers worried about the economy.