The British Government should be “ashamed” over its policies in response to the war in Gaza, a former cabinet member has said, as he suggested ministers should resign as a result.