Terror groups paved way for July 15 coup bid