Charge density waves and pinning by lattice anisotropy in 214 cuprates