Existence and Characterization of Attractors for a Nonlocal Reaction–Diffusion Equation with an Energy Functional