Mohamed Salah has announced he will leave Liverpool at the end of the current season, ending a legendary nine-year run with the club.