How the British failed India and Pakistan