Chemical abundances of planetary nebulae from optical recombination lines – I. Observations and plasma diagnostics