Donald Trump ally Elon Musk has said that white South Africans have been the victims of "racist ownership laws".