Nasir el-Rufai, former governor of Kaduna state, has resigned from the All Progressives Congress (APC), joining the Social Democratic Party (SDP).