Half-centuries for senior pair ensure Somerset cannot capitalise on morning declaration