Jamie Carragher has apologised for his comments about Aston Villa after the club announced plans to take legal action against him.