The British government says it will retain its presence in occupied East Jerusalem after Israel removed its consulate.