A referendum this year will ask the public whether they support legalising the use of cannabis, accompanied by regulation, education and taxation.