Social media companies in court over mental health harm claims