Celtic come from behind to beat 10-man Motherwell and keep pressure on Scottish Premiership leaders Hearts.