Transition from quasi-periodicity to chaos in a system of coupled nonlinear oscillators