Offender in Hamilton flees after trying to break into homes and cars