England rugby league international Sam Burgess has confirmed that he has agreed a cross-code move to Bath.