Behaviour of wave trains in shallow water