Anthony McCarten’s play on the two art legends’ relationship is bogged down in potted biographies but builds to a crescendo