Tesla’s sales of China-made vehicles plunged 64% in July from a month earlier, as the company’s ambitious upgrade of its Shanghai factory disrupted production.