A study finds elderly people who did not exercise saw an improvement in their memory after playing golf regularly for six months.