Newcastle have announced the signing of Hatem Ben Arfa on an initial season-long loan deal from Marseille.