Coupled cluster approach with explicitly correlated cluster functions