London rivals West Ham and Tottenham are vying to sign Gallagher, who accepts the need to leave Stamford Bridge after 17 years