Technology can arrest NHS decline