India has posted its slowest growth rate in two years, ceding its status as the world’s fastest-growing major economy to China,