Ireland overcame a stubborn Wales to keep their Six Nations and Triple Crown hopes alive with a 27-17 bonus‑point victory in Dublin.