The first hearing into the stabbing rampage, where Joel Cauchi killed six people before being shot dead by police, has begun in Sydney.