A former police chief has been jailed for three years over the bungled response to a crowd stampede in South Korea's capital that killed almost 160 people.