On a quantitative version of Harish-Chandra's regularity theorem and singularities of representations