Ground states for pseudo-relativistic Hartree equations of critical type