I'm wondering if it could be cleat position? It seems like your pain has happened since they were installed. Just something else to consider, in addition to many other possibilities!
Personally, I would not stretch an injured hamstring. I'd just let it heal, and take ibuprofen. I probably would do a really easy ride, but I'd stop if it hurt at all.