Path-dependent equations and viscosity solutions in infinite dimension