China and India have agreed to resume direct commercial flights for the first time in five years, in the latest sign of warming relations between the world’s two most populous countries.