Analytic and numerical solutions of nonlinear diffusion equations via symmetry reductions