An inquest is examining whether there were "missed opportunities" to stop Joel Cauchi's stabbing rampage.