MacBook Pro suddenly started to freeze with any action (using SSD)
It sounds like you have a faulty SATA cable. Others have reported this same problem when upgrading from a standard HD to a SSD with Mid-2012 MacBook Pro laptops.

You can find more information over at Apple’s Support site:
https://discussions.apple.com/message/24783957#24783957