Turmoil in Afghanistan as Ghani election win declared 'illegal' by rival