A large dementia study found people who took heart medication for five years or more had a significantly reduced risk of developing the debilitating condition