Police closed rape investigation before suspect went on to murder two women – one in the same car park as the sex attack, court hears