Rising tensions between the NHS and pharmaceutical companies are testing how much the health service can afford to pay for new branded medicines.