Teenager was found dead days after leaving mental health unit, inquest hears