Subfemtosecond Control of Molecular Fragmentation by Hard X-Ray Photons