AnyRotate: Gravity-Invariant In-Hand Object Rotation with Sim-to-Real Touch