French President Emmanuel Macron will visit Iraq at the end of August to attend a regional congress in Baghdad.