Temperature dependence of resistivity at the transition to a charge density wave state in rare-earth tritellurides