Tesla has halted most of its production at its Shanghai plant due to problems securing parts for its electric vehicles, according to an internal memo.