Five-year-old's death to be investigated after overcrowded hospital sent him home