Nigel Farage’s party took control of 10 local councils, won two mayoral races and added a fifth MP.