OnePlus is exiting the US and Europe markets as Oppo restructures its brands amid rising costs and weak overseas sales.