John McDonnell expresses regret over local election losses