A new study has found that time spent gardening may protect against dementia up to the age of 80.