Former Defence Secretary Gavin Williamson lost Theresa May’s confidence, MPs told.