Nearly £5bn is due to be spent on flood defences in England up until 2026, government figures show.