Adaptive mesh refinement for hyperbolic systems based on third-order Compact WENO reconstruction