Pellegrini battling to stay at West Ham