Changing patterns of marriage and cohabitation in South Africa