Chelsea have signed Borussia Dortmund forward Jamie Gittens in a deal worth £51.5m on a seven-year contract.