Stung by Donald Trump’s volatile foreign policies, New Delhi is deepening ties with the EU and ‘middle powers’ such as Canada