The Home Office spent £15 million buying a derelict prison contaminated with asbestos amid political pressure to stop housing migrants in hotels, according to Whitehall’s spending watchdog.