Germany’s top prosecutor has charged a suspected Islamic extremist with murder, attempted murder and membership in a terrorist organisation abroad in connection with a deadly knife attack last year at a festival in the western German city of Solingen.