The nature of the charge density waves in under-doped YBa$_2$Cu$_3$O$_{6.54}$ revealed by X-ray measurements of the ionic displacements