White House communications director resigns