A doctor who punched a dementia patient in the head and pushed his head into a pillow, has been erased from the medical register.