The joint distribution of consecutive patterns and descents in permutations avoiding 3-1-2