Tesla’s China rival has dropped plans to build its own factory