The Australian government has cut diplomatic ties with Tehran and expelled its ambassador amid accusations the country organised two antisemitic attacks.