The doctor is correct. The semen leakage is suggestive if a problem of premature ejaculation and is unrelated to muscle problem. You must get your premature ejaculation treated. With suitable medications and instructions it can be completely cured.
Next Steps
Kindly consult with a sexologist.
Health Tips
Don't worry. It is treatable.