Groups with all subgroups $f$-subnormal