A major incident has been declared after a huge moorland fire forced dozens of residents to flee their homes in Manchester.