A non local anisotropic model for phase transitions. Part 1: the optimal profile problem