Australian start-up Mary Technology has raised $7m to solve the misuse of artificial intelligence that is plaguing the legal profession.