Sheryl Sandberg, Facebook’s chief operating officer, opened up about her personal struggles since the death of her husband last year, in a commencement speech at University of California at Berkeley.