Isotopic investigation of the lattice dynamics in CuBr