Slave trade's 'legacy of racism' still haunts world: UN chief