Andriy Yermak, former chief of staff to Ukraine's president, was freed on bail after four days in custody in a major money laundering case.