The coast guard has detained five people on board a boat suspected of smuggling goods between Taiwan and China.