Logarithmic temperature variations of the elastic constant of barium titanate near the ferroelectric phase transition