Decomposition of spectral flow and Bott-type iteration formula