Long time behaviour for a PDE with hysteresis arising in electromagnetism