The mother of a 12-year-old boy has told of how her son's mental health has been "severely impacted" due to pornography being shared between pupils at an Edinburgh school.