Detection of periodicity in functional time series