Some of the BBC’s major radio stations saw audiences rally amid of summer of sport and entertainment, but local radio shows have suffered a drop in listeners, figures show.