UK historian quits Cambridge over slavery remarks