Explicitly correlated coupled-cluster theory using cusp conditions. II. Treatment of connected triple excitations.