The Chinese-owned AI app that caused a $1 trillion hit to prominent tech stocks has been banned on government devices over national security fears.