PM Nawaz vows action against all militant groups