The prime minister and opposition leader have traded barbs over when they knew an explosives-laden caravan was a hoax and not an anti-Semitic terror plot.