Peru's former president Ollanta Humala has been sentenced to 15 years in jail for money laundering.