Thailand's government says its will reverse its 2022 legalization of recreational cannabis use by the end of the year.