I think both mdma and marijuana cause anxiety and they mess with short term memory.
There doesn't seem to be a good answer to protecting kids from drugs. Heavily regulated legalisation might help or it might normalise drug use.
As an aside I personally think alcohol in very moderate use isn't really as harmful as other drugs. And is probably a net benefit for many. Even moderate use of illegal drugs seems to have bad affects on people.
Edit: added my thoughts on alcohol and something on cocaine use.