Ferrari have been interested in signing Lewis Hamilton for "some months", with their president John Elkann the pushing the deal.