China is shutting a third of its ivory factories and retail stores as it moves towards a formal ban on ivory sales by the end of the year.