James Purdy, who has died aged 94, wrote outlandish, idiosyncratic novels that did not sell in large quantities but survive, sometimes in print.