Liverpool agree a 41m euro (£35.1m) deal to sell forward Sadio Mane to Bundesliga champions Bayern Munich.