"(a)if the residential premises on which the hazard exists are a dwelling or HMO which is not a flat, it may prohibit use of the dwelling or HMO;" . . . .