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