Leicester City defender Liam Moore has agreed to join League One side Brentford on loan until the end of the season.