How did apartheid affect people in terms of housing?