Maximum likelihood estimation and inference for approximate factor models of high dimension