Optimal Gaussian concentration bounds for stochastic chains of unbounded memory