South African President declares solidarity with Palestinians, equates struggle with apartheid