Irish man who raped his granddaughter has conviction withdrawn because he is ‘unfit’ to stand trial