Exploring cosmic origins with CORE: B-mode component separation