Pakistan 'gives militants refuge'