Peak effect in YBCO crystals: statics and dynamics of the vortex lattice