Patient care ‘on a knife edge’ as up to 350,000 appointments could be cancelled during junior doctors strike