Cannabinoid function in synapses, circuits and brain: from molecules to disease mechanisms