Modelling eruption cycles and decay of mud volcanoes