Mark Webber says he made the decision to leave Formula 1 at the end of the season "quite a while" ago.