A mother has gone on trial accused of kidnapping and selling her young daughter in South Africa.