A former F1 team boss has claimed that he almost signed Lewis Hamilton before talks over a loan deal from McLaren collapsed.