England were beaten 27-22 by Ireland in their Six Nations opener in Dublin despite a solid first-half showing.