Dynamical studies of highly deuterated betaine phosphate near the antiferroelectric phase transition