On local-global compatibility for cuspidal regular algebraic automorphic representations of GLn