Interstellar molecular lines in the direction of the young star TY CrA