Carillion has sold Pall Mall Holdings and Sovereign Soft Services, its cleaning and security businesses, to Northern Irish firm Resource in a deal worth £22m.