Junior doctors and consultants will strike together for first time over pay erosion