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