Sir Keir Starmer’s senior ministers have drawn up plans to cope with extreme weather this winter following the devastating floods in Spain.