A Lancashire teenager battling complex mental health issues was tragically unable to beat a dangerous substance addiction before her untimely death, an inquest heard.