A political outsider has won Iceland's presidential election after riding a wave of public anti-establishment sentiment in the wake of the Panama Papers scandal.