China has reclaimed its position as India's largest trading partner, surpassing the United States after two years.