Britain's military intervention in Libya five years ago was “misguided”, according to a report by an influential parliamentary committee.