Robust Statistical Ranking: Theory and Algorithms