Packaging and assembly technologies for the pixel detector upgrade and measurement of $\tau\tau$ final states with the CMS experiment at the LHC