Lagrangian transport by peristalsis in a closed cavity