Shares in major US technology firms have plunged after the rapid rise of a low-cost chatbot built by a Chinese artificial intelligence (AI) firm.