Some people can't afford homes because investors are buying them. There is zero reason to believe that prohibiting investment properties would allow everyone to afford a home.
That's rich coming from someone who thinks that owning should be the only way to have a dwelling.
No, I don't think that renting is the only way to have a dwelling.
However, I do think that renting is a better option than owning for many people.
Moreover, I don't think that telling people how they should and shouldn't have dwellings is good.