Improving star-galaxy separation and galaxy group catalogues with multi-band photometry