Nottingham Forest have signed Hull City defender Jack Hobbs on a season-long loan which will become permanent next summer.