Study shows that Viagra may help prevent dementia