A Physical Model for the Hysteresis in MoS2 Transistors