Doctors have removed a smartphone charging cable from a "curious" teenager's penis after he inserted it up his urethra and it knotted in his bladder.