Best-selling author confirms she has cancer