Periodic solutions of a hysteresis model for breathing