Hospitals to receive £145 million to prepare for winter demand