Barcelona goalkeeper Victor Valdes has said an emotional goodbye in an open letter to fans of the Catalan club.