IBM is the latest American company to downsize its presence in China amid heightened tensions between Washington and Beijing.