Fredrik Ulrik Wrangel (1853-1929), greve, författare