Structural and geometric properties of RCD spaces