Fractional generalized Langevin equation approach to single-file diffusion