Recurrent Attacks in a Class of Cyber-Physical Systems: Hybrid-Control Framework for Modeling and Detection