A Frenchman detained with a large cache of arms was planning mass attacks during the Euro 2016 tournament in France, Ukraine's security agency says.