Bryan Kohberger believed he committed ‘the perfect murders’ until one key mistake shattered his plot: author