Relativistic four‐component multiconfigurational self‐consistent‐field theory for molecules: Formalism