Functional equations on abelian groups with involution