Spectral localization, power boundedness and invariant subspaces under Ritt's type condition