Listening to music into old age could reduce the risk of dementia by almost 40 percent, a new study has found.