A 99-year-old dementia patient died after being assaulted in his rest home bedroom by another resident suffering from dementia, a coroner has found.