BBC apologises for broadcasting documentaries made by firm being paid millions by PR clients