Malta will become the first European country to legalise the cultivation and possession of cannabis for personal use.