You forget about false ideas about masturbation
,one never gets weakness or impotence
or weight loss
due to masturbation.
As you are weak and thin you may go for high protein diet,fresh fruits,dry fruits,milk with high fat etc.
But mind well that your habit has no role with your body muscle mass.