Labour will legislate for medicinal cannabis “pretty quickly” after taking office, leader Andrew Little has confirmed.