Rank-N-Contrast: Learning Continuous Representations for Regression