On subgroups of R. Thompson's group $ F$ and other diagram groups