Anthony Scaramucci pledged “to take drastic” action to stop leaks out of the White House two days after he was named Donald Trump’s new communications director.