Former Iraqi Prime Minister Mustafa al-Kadhimi has returned to Baghdad for the first time in more than two years despite ongoing security threats.