Numerical method for fractional diffusion-wave equations with functional delay