The double ramification cycle and the theta divisor