Matthew Perry was in the early stages of setting up a foundation dedicated to assisting individuals dealing with substance abuse-related issues in the months leading up to his untimely passing.