Sarah Michelle Gellar has revealed she stepped away from acting because she felt "directionless" after the death of her friend and former co-star Robin Williams.