Blamed for smartphone and gambling addiction, the ‘pleasure chemical’ has been held up by the tabloid media as the malign force behind every teenage misstep. But the research, writes Chris Parr, shows that this neurotransmitter has a positive role to play in boosting learning and memory