A variational approach to repulsively interacting three-fermion systems in a one-dimensional harmonic trap