Infinitely generated subgroups of finitely presented groups. I