The United States is set to warn Americans against visiting Cuba and will order more than half of US personnel to leave the island in a dramatic response to “specific attacks” on diplomats.