Faltings' local-global principle for the finiteness of local cohomology modules