Iran has hit vessels it says have violated its restrictions on passage through the waterway, as it seeks to assert control over the strait and exert pressure on Washington.