Stochastic partial differential equations with delays