Some NHS trusts doubled the cost of certain stays in 2017-18, freedom of information requests show.