Nasa is retiring the Kepler space telescope from planet-hunting because its pointing system is no longer fully functional.