Carbon and nitrogen abundances in red giant stars in the globular cluster 47 Tucanae