Letting agents have urged Scottish lawmakers not to repeat the mistake of restricting rents that has ultimately increased costs for tenants.