The Prime Minister and Labour leader have united to pay tribute to Labour MP Jo Cox in the West Yorkshire town where she was killed.