'Dysfunctional' Home Office in need of reform, sacked borders watchdog says