Periodic behaviour for the evolutionary dam problem and related free boundary problems Evolutionary dam problem