Iran has been given a late invitation to this week's Syria peace conference, UN leader Ban Ki-moon says.