Ex-vice president Riek Machar returned for the first time since 2016 to take part in a peace ceremony.