Ehud Olmert, the former Israeli prime minister, has been freed from prison after being granted parole in a corruption case that reduced his sentence by a third.