The trust responsible for one of the UK's largest teaching hospitals is placed in special measures after it is rated inadequate.