Statistical significance of communities in networks