British ambassador to Washington quits after spat over leaked memos