Too many patients are spending their last days in hospital amid financial pressures, a parliamentary committee has warned.