Is Planck data consistent with primordial deuterium measurements?