Duterte thanks nations for helping to liberate Marawi