Theoretical studies of interstellar molecular shocks – III. The formation of CH+ in diffuse clouds