Structure of non-smooth spaces with Ricci curvature bounded below