Regularity of time-fractional reaction-diffusion problems and their solution by a graded-mesh finite difference method