Well I think you did not do the HDD to SSD update properly. Or may be because you not install the windows 10 properly.
So I will suggest you to check that you have done the HDD to SSD in properly and unintall the windows 10 and reinstall the windows 10 on your system
Try this and let me know if it work for you.
When upgrading SSD, its new and blank so how can one uninstall the windows 10?
Also, as said the system hangs at shutdown or restart, but once restarted the system works fine with new SSD and new Windows..