Wiz Khalifa has received a sentence of nine months in Romanian jail after being caught with cannabis last year.