Imran Khan and his wife have been handed 17-year jail sentences for corruption in the latest legal trouble for the former Pakistan prime minister.