Jurgen Klopp has compared Claudio Ranieri's sacking at Leicester to the UK's decision to vote for Brexit and the election of Donald Trump.