A startup whose app connects people with mental health clinicians for counseling through text messages and video chats raised $50 million and forged ties with the biggest U.S. health insurer, a sign that the market for delivering psychotherapy remotely is growing.