Boris Johnson has failed to lead over the UK’s hosting of a key climate summit, its former boss says.