A Model for Two-Phase Flow with Hysteresis