1. You could swim at the age of ten.
2. You could swim at 10 years of age.
(personally I also prefer 'by' to 'at' for both of these options.)
3. You could swim when you were ten years old.
These represent the past. If you want to discuss the future you need.
You can swim or You may swim or You will be able to swim or You can learn to swim...