Ed Sheeran was accused of infringing copyright of Marvin Gaye’s massive hit on his own song Thinking Out Loud