Swimming is a very low impact workout, and the BEST cardio workout out there. Mix it in with some *very* light weights to get you started on the legs, and go from there.
Remember, no matter how frustrating it is, if you are feeling pain, then you have to stop. You're young, you have time to work on this. Good luck
*edit missed the part about can't get a gym membership. nix on the weights part