Mainz-anføreren Moussa Niakhaté skifter til Premier League-klubben Nottingham Forest, der har udstyret franskmanden med en treårig kontrakt.