Contrasting predictors of poor antiretroviral therapy outcomes in two South African HIV programmes: a cohort study