Maximal functions and transference for groups of operators