On the local-global principle and the finiteness of associated primes of local cohomology modules