Iraqi President Barham Salih has submitted a letter of resignation to the Iraqi parliament.