Finite groups with invariant fourth maximal subgroups