Thailand legalises marijuana, releases thousands arrested on cannabis charges