Pervert caught after ex tips off police