Wolseley will close branches, cut jobs at Stock