Germany's ruling coalition collapsed as Chancellor Olaf Scholz sacked his finance minister, triggering political chaos.