Ready for talks with Maoists, Kashmir groups: PM