Recommendations for who will be legally liable if an autonomous vehicle is involved in a collision or commits an offence are set to be published