Major terror bid foiled in Hangu, 5 arrested