"Finding humor helped get me thru what seemed impossible," Shannen Doherty wrote in honor of Breast Cancer Awareness Month