Realisation of groups as automorphism groups in categories