Raman scattering study and lattice-dynamics calculations in YTiO3: Precursor of the magnetic phase transition in the phonon anomalies