Former snooker world champion Terry Griffiths has died aged 77 after a lengthy battle with dementia, his family has said.