Well posedness results for a class of partial differential equations with hysteresis arising in electromagnetism