A group of MPs from all of the parties in the Chamber of Deputies has completed legislation which could legalise the use of cannabis for medical purposes.