Uncompromising opponent of racial-segregation system maintained ties with Nelson Mandela despite their divorce in 1996.