David Cameron was “wrong” to raise the prospect of sanctions being considered against two Israeli ministers, according to Foreign Secretary David Lammy.