Ricardo Martinelli has been convicted of money laundering in his native Panama and sentenced to 10 years in prison.