Just under half the entire IT budget goes on patching up outdated systems, a government report says.