What was the main cause of apartheid?