The first test of New Delhi’s diplomatic tightrope will be in the BRICS forum, which India chairs this year