Liverpool have agreed a deal with Bayern Munich with £20million to sign Thiago Alcantara, with a further £5m in potential add-ons.