Mean values of second moments of $L$-series of modular forms averaged over all twists by characters mod $q$