Stop everything running in your system tray, like antivirus or anything else that appear there. Also unplug any peripherals like gaming controllers, webcam or USB sticks.
If Windows shuts down normally you know its one of these programs or devices that is causing the problem.
Another thing to do is to start in Safe mode and see how shutdown behaves from there.
Again, if its quick then the cause is definitely a device or program.