Twists of modular forms and endomorphisms of Abelian varieties