Robust spectral clustering with rank statistics