The local structure of length spaces with curvature bounded above