India has said it will return the soldier when unspecified ‘formalities’ are complete