Resignation comes after president-elect said he will nominate Kash Patel to lead top US law enforcement agency