A 76-year-old man with prostate cancer has been detained by immigration officials for more than two months, relatives said.