British government accused of ‘breaking law’ by forcing companies to retain data