Investors feverishly bought shares of a Twitter, pushing the stock up as much as 25 per cent, after the social media platform announced its first-ever quarterly profit.