A student accused of the murder of physical trainer Amie Gray on Bournemouth beach told police that he was not responsible and he would not “attack someone for no reason”, a court has heard.