People are often advised to try to keep up their levels of so-called good cholesterol to reduce their risk of heart disease. High levels may also help prevent a decline in memory, a new study says.