The European Union and India have reached a free trade agreement to deepen economic and strategic ties after nearly two decades of negotiations.