Path integral approach to stochastic magnetization dynamics in uniaxial ferromagnetic nanoparticles