Foreign Secretary Boris Johnson says the Prime Minister showed "wisdom" when she decided not to appear in a TV election debate.