Inertial spin dynamics in ferromagnets