People who eat lots of chilli 'face higher risk of memory loss', study finds