There used to disk management tools that would not only defrag, but load the most frequently used files/folders/directories onto the early disk sectors (where read rates are faster).
Who knows what M$ does anymore?
Windows optimizes the disk to improve program load times. Defragmenting with tools other than Windows® is generally not recommended unless they have a certification approval sticker. Even then, I'd be very surprised if fragmentation is the cause of the performance problem.
I'd recommend downloading this first: Seatools for Windows [or some other disk diagnostic tool.] Check for S.M.A.R.T. or other errors on the disk.
As other have observed, the best thing you can do is get an SSD.