Skottland föreslår att avkriminalisera innehav av all narkotika för personligt bruk, enligt ett reformdokument som publicerades på fredagen.