Latent Factor Point Processes for Patient Representation in Electronic Health Records