Thomas Tuchel has confirmed he will leave Bayern Munich at the end of the season following reports he was open to staying as manager.