A British museum has agreed to repatriate to Ethiopia two locks of hair taken from the head of the 19th-century emperor Tewodros II.