Government confirms plans to legalise medicinal cannabis