Actress Evangeline Lilly has apologised for insensitive comments she made about social distancing during the coronavirus pandemic.