Terrorists not Muslims, says ex-French president