William Dalrymple traces the East India Company’s takeover of Hindustan