Sydney knife attacker was 40-year-old man with mental health issues, say police