Wellposedness results for a class of parabolic partial differential equations with hysteresis