Asymptotic behavior of a class of nonlinear stochastic heat equations with memory effects