Literary festivals steel against rising costs as scaled-down Edinburgh ‘preserves as much as we can’