A woman in Bolivia has been arrested after admitting that she sold her new-born baby to a woman who could not have children of her own, police say.