Evidence for coupling between charge density waves and phonons in two-dimensional rare-earth tritellurides