First of all masterbation is not a bad habit it is a normal physiological phenomenon.dont put on pressure on your brain.you are bright and intelligent student,then why are u so afraid of your result.It causes lacks your normal strength.Dont loose your confident.You must succeed.
Next Steps
1.take proper 8 hours sleel at night
2.morning walk regular
3.increase your memory by increase attention on what you read.