Militias raised a flag inside Raqqa stadium on Tuesday, as a four-month battle to take Islamic State's Syrian capital came to an end.