India is trying to strengthen its long-standing ties to countries on the continent as New Delhi attempts to catch up with China, which has emerged as Africa’s largest trading partner.