Capillary hysteresis in sloshing dynamics: a weakly nonlinear analysis. (5th January 2018)