Listening to music could help ease the effects of dementia by providing comfort and stimulating the brain, a GP has revealed.