Photoproduction of $ \omega$ mesons on nuclei near the production threshold