Yvette Cooper has announced £140m investment in England's urgent care system, after summer heatwaves piled pressure on the NHS.