Long-term cannabis users tend to produce less dopamine, a chemical in the brain linked to motivation, a study has found.