For years, doctors have encouraged people to consume foods such as fish that are rich in omega-3 fatty acids because they appear to improve memory and other brain functions.