Infosys named former CEO Nandan Nilekani as chairman of the board following the surprise resignation of CEO Vishal Sikka.