Perus tidigare president Ollanta Humala har dömts till 15 års fängelse i en stor korruptionshärva.