Relation between the spectral properties of wall turbulence and the scaling of the Darcy-Weisbach friction factor