Bayern Munich forward Thomas Müller has revealed that he will be leaving the club at the end of the current season, bringing an end to a 25-year career with the club.