Former New Zealand rugby league captain Benji Marshall has joined the Super Rugby side Blues in a late-career code switch.