Pluriharmonic maps of maximal rank