Britain’s parliamentary term ends in acrimony and scandal