Late West Ham turnaround inflicts more home heartache on Burnley