Flux creep in Josephson junction arrays